<include file="Public/header"/>
<include file="Public/menu"/>
<div class="page-content">
	<div class="page-header">
		<h1>
			新闻
			<small>
				<i class="icon-double-angle-right"></i>
				<eq name="Think.ACTION_NAME" value="edit">修改新闻<else/>添加新闻</eq>
			</small>
		</h1>
	</div>
	<!-- /.page-header -->
	<!-- PAGE CONTENT BEGINS -->
	<div style="" class="row">
		<div style="" class="col-xs-12">
			<div style="" class="row">
				<div style="" class="tabbable">
					<ul class="nav nav-tabs" id="myTab">
						<li>
							<a href="http://localhost/vivo/Wolf/index.php/Admin/News/index">
								<i class="green icon-home bigger-110"></i>
								新闻列表
							</a>
						</li>
						<li class="active">
							<a >
								<i class="green icon-edit bigger-110"></i>
								<eq name="Think.ACTION_NAME" value="edit">修改新闻<else/>添加新闻</eq>
							</a>
						</li>
					</ul>
					<div style="" class="tab-content">
						<div style="" class="tab-pane in active">
							<form style="" id="ajaxForm" class="form-horizontal" action="
							/vivo/Wolf/index.php/Admin/News/update" method="post" enctype="multipart/form-data">
								<input name="id" value="206" type="hidden">
								<input name="module" value="" type="hidden">
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">新闻分类</label>
									<div class="col-sm-2">
										<select class=" width-80 form-control" name="cid">
											<option value="">全部分类</option>
											<option value="22">金融</option><option value="21">新媒体</option><option value="19">互联网</option><option value="20" selected="selected">移动互联网</option>										</select>
									</div>
								</div>

								<div class="space-4"></div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right"> 新闻标题 </label>
									<div class="col-sm-9">
										<input name="title" placeholder="请输入标题" class="col-xs-10 col-sm-5" value="礼物说：牛逼的人不怕质疑，也从来不会停止学习" type="text">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right"> 标题图片 </label>
									<div class="col-sm-4">
										<div class="ace-file-input"><input id="id-input-file-2" name="thumb" value="/Uploads/Picture/news/20150113//54b503e2c3357.jpg" type="file"><label class="file-label" data-title="选择图片"><span class="file-name" data-title="未选择图片 ..."><i class="icon-upload-alt"></i></span></label><a class="remove" href="#"><i class="icon-remove"></i></a></div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right"> 内容简介 </label>
									<div class="col-sm-9">
										<textarea class="col-xs-8" rows="5" name="desc">关于礼物说坐标：北京 中关村团队：二十多人关键词：90后 实干 学术 高效 诚信适合人群：热衷学习、崇尚诚信，对时间管理和自我管理有追求的小伙伴不诚信的读书人不是好的创业者潮汕地</textarea>

									</div>
								</div>

								<div style="" class="form-group">
									<label class="col-sm-3 control-label no-padding-right"> 内容</label>
									<div class="col-sm-9">
										<textarea id="content" class="col-xs-11" name="content">{$data.content}</textarea>
									</div>
								</div>
								<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right"> 新闻等级</label>
									<div class="col-sm-2">
									<select name="level">
										<option value="1">普通新闻</option>
										<option value="2" selected="selected">幻灯图片新闻</option>
									</select>
									</div>
									</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right"> 状态</label>
									<div class="col-sm-2">
										<input name="status" class="ace" checked="checked" value="1" type="radio">
										<span class="lbl"> 已发布 </span>
										<input name="status" class="ace" value="2" type="radio">

										<span class="lbl"> 未审核 </span>
									</div>
								</div>

								<div class="space-4"></div>

								<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button class="btn btn-info" type="submit">
											<i class="icon-ok bigger-110"></i>
											提交
										</button>

										&nbsp; &nbsp; &nbsp;
										<button class="btn" type="button">
											<i class="icon-undo bigger-110"></i>
											返回
										</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- PAGE CONTENT END -->
</div>
</div>
</div>

<!-- inline scripts related to this page -->
<script type="text/javascript">
	seajs.use(['$','ue','ace-elements'],function($,ue){
		//编辑器配置
		UEDITOR_CONFIG.initialFrameHeight = 500;
		UEDITOR_CONFIG.imageUrl  = "/vivo/Wolf/index.php/Admin/News/imgUpload/module/news";//图片上传路径
		UEDITOR_CONFIG.savePath  = ["./Public/Uploads/Picture/news"];
		UEDITOR_CONFIG.imagePath = "/vivo/Wolf/Public/Uploads/Picture/";//图片访问路径
		ue.getEditor('content');

		//标题图配置
		$('#id-input-file-1 ,#id-input-file-2').ace_file_input({
			no_file:'未选择图片 ...',
			btn_choose:'选择图片',
			btn_change:'改变图片',
			droppable:false,
			onchange:null,
			thumbnail:'large', //| true | large
			whitelist:'gif|png|jpg|jpeg'
			//blacklist:'exe|php'
			//onchange:''
			//
		});
	});
</script>
<include file="Public/footer"/>

